﻿using System.ComponentModel.DataAnnotations;

namespace Quickly.Certs.EntityFrameworkCore.Data
{
    public class AccountEntity
    {
        public AccountEntity()
        {
            Created = DateTimeOffset.UtcNow;    
            LastModified = DateTimeOffset.UtcNow;
        }

        [Key]
        [Required]
        public int Id { get; set; } = default!;

        public string[] EmailAddresses { get; set; } = [];
        public byte[] PrivateKey { get; set; } = [];

        public DateTimeOffset Created { get; set; }
        public DateTimeOffset LastModified { get; set; }
    }
}
